package com.example.combwx.mvp.view.uesr;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.combwx.db.UserUtility;
import com.example.combwx.mvp.model.entity.UserEntity;
import com.example.combwx.utils.SpUtils;

public class QuitAcitvity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        try {
            UserUtility.getInstance().getDaoSession().deleteAll(UserEntity.class);
        } catch (Exception e) {
            e.printStackTrace();
        }
        SpUtils.accounData("user",false);
        finish();
    }
}
